<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/V_service_charge.js此处编写
 -->
 <template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/mall/V_service_charge.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: "childrenNumber",
        footer: "Foots",
        cnName: "订单取消明细报表",
        name: "V_service_charge",
        url: "/V_service_charge/",
        sortName: "createDate",
        paginationSize: 99999999,
        paginationHide: true,
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: {
        title: "",
        order_number: "",
        bookingPhone: "",
        createDate: "",
        distributorCode: "",
        type: "",
        BookingName: "",
        wxOrderNo: "",
        outRefundNos: "",
        refundOfTime: "",
      },
      searchFormOptions: [
        [
          { title: "订单号", field: "order_number", type: "like" },
          { title: "商品名称", field: "title", type: "like" },
          { title: "创建时间", field: "createDate", type: "datetime" },
        ],
        [
          { title: "支付流水号", field: "wxOrderNo", type: "like" },
          { title: "子单号", field: "childrenNumber", type: "like" },
          {
            dataKey: "distributorList",
            data: [],
            title: "分销商名称",
            field: "distributorCode",
            type: "select",
          },
        ],
        [
          { title: "退款流水号", field: "outRefundNos", type: "like" },
          { title: "退款时间", field: "refundOfTime", type: "datetime" },
          { title: "退款备注", field: "spare4", type: "like" },
        ],
        [{ title: "申请人", field: "BookingName", type: "like" }],
      ],
      columns: [
        {
          field: "createDate",
          title: "创建时间",
          type: "datetime",
          width: 160,
          align: "left",
          sortable: true,
        },
        {
          field: "order_number",
          title: "订单号",
          type: "string",
          width: 200,
          align: "left",
        },
        {
          field: "childrenNumber",
          title: "子单号",
          type: "string",
          width: 220,
          require: true,
          align: "left",
        },
        {
          field: "title",
          title: "商品名称",
          type: "string",
          width: 220,
          align: "left",
        },
        {
          field: "settlement_price",
          title: "单价",
          type: "decimal",
          width: 60,
          align: "left",
        },
        { field: "num", title: "数量", type: "int", width: 60, align: "left" },
        {
          field: "order_total_price",
          title: "应退金额",
          type: "decimal",
          width: 90,
          align: "left",
        },
        {
          field: "payMoney2",
          title: "手续费",
          type: "decimal",
          width: 90,
          align: "left",
        },
        {
          field: "payMoney",
          title: "实退金额",
          type: "decimal",
          width: 90,
          align: "left",
        },
        {
          field: "wxOrderNo",
          title: "支付流水号",
          type: "string",
          width: 220,
          align: "left",
        },
        {
          field: "outRefundNos",
          title: "退款流水号",
          type: "string",
          width: 220,
          align: "left",
        },
        {
          field: "refundOfTime",
          title: "退款申请时间",
          type: "datetime",
          width: 180,
          align: "left",
          sortable: true,
        },
        {
          field: "BookingName",
          title: "申请人",
          type: "string",
          width: 90,
          align: "left",
        },
        {
          field: "card_equities",
          title: "申请理由",
          type: "string",
          width: 220,
          align: "left",
        },
        {
          field: "auditDate",
          title: "退款审核时间",
          type: "datetime",
          width: 160,
          align: "left",
          sortable: true,
        },
        {
          field: "auditor",
          title: "审核人",
          type: "string",
          width: 90,
          align: "left",
        },
        {
          field: "auditreason",
          title: "审核备注",
          type: "string",
          width: 220,
          align: "left",
        },
        {
          field: "refundTime",
          title: "退款时间",
          type: "datetime",
          width: 180,
          align: "left",
          sortable: true,
        },
        {
          field: "spare4",
          title: "退款备注",
          type: "string",
          width: 220,
          align: "left",
        },
        {
          field: "refundStatus",
          title: "退款状态",
          type: "string",
          width: 90,
          align: "left",
        },
        //  {field:'childrenNumber',title:'订单子项单号',type:'string',width:90,require:true,align:'left'},
        //  {field:'distributorCode',title:'分销商编码',type:'string',width:220,align:'left'},
        {
          field: "distributorCode",
          title: "分销商名称",
          type: "string",
          bind: { key: "distributor_name", data: [] },
          width: 120,
          align: "left",
        },
        //  {field:'order_number',title:'订单号',type:'string',width:220,align:'left'},

        //  {field:'settlement_price',title:'结算单价',type:'decimal',width:90,align:'left'},
      ],

      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: "",
      },
    };
  },
};
export default vueParam;
</script>
